package com.daijia.service.drive;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.daijia.dao.account.AccountDao;
import com.daijia.dao.location.AddressDao;
import com.daijia.dao.location.ServingAreaDao;
import com.daijia.dao.price.PricingDao;
import com.daijia.dao.score.RateDao;
import com.daijia.service.account.AccountManager;

/**
 * 
 * @author SHI
 *
 */
//Spring Bean的标识.
@Component
//默认将类中的所有函数纳入事务管理.
@Transactional
public class DriverBusiness {
	
	private static Logger logger = LoggerFactory.getLogger(AccountManager.class);
	
	private AccountDao accDao;
	private AddressDao addressDao;
	private PricingDao priceDao;
	private RateDao rateDao;
	private ServingAreaDao serveAreaDao;
	
	@Autowired
	public AccountDao getAccDao() {
		return accDao;
	}
	@Autowired
	public void setAccDao(AccountDao accDao) {
		this.accDao = accDao;
	}
	@Autowired
	public AddressDao getAddressDao() {
		return addressDao;
	}
	@Autowired
	public void setAddressDao(AddressDao addressDao) {
		this.addressDao = addressDao;
	}
	@Autowired
	public PricingDao getPriceDao() {
		return priceDao;
	}
	@Autowired
	public void setPriceDao(PricingDao priceDao) {
		this.priceDao = priceDao;
	}
	@Autowired
	public RateDao getRateDao() {
		return rateDao;
	}
	@Autowired
	public void setRateDao(RateDao rateDao) {
		this.rateDao = rateDao;
	}
	@Autowired
	public ServingAreaDao getServeAreaDao() {
		return serveAreaDao;
	}
	@Autowired
	public void setServeAreaDao(ServingAreaDao serveAreaDao) {
		this.serveAreaDao = serveAreaDao;
	}
	
	

}
